
import request from "../utils/request";
export interface classListModel {
  categoryGroupList: any[],
  categoryL1List: any[],
  categoryL2List: any[],
  currentCategory: any[]
}
// 获取分页列表数据
export const getClassList = () => {
  return request.get<any, any>(`/item/cateList.json?__timestamp=1630131286110&categoryId=`)
}
export const getItemList = (id?: number) => {
  return request.get<any, any>(`/item/cateList.json?__timestamp=1630131286110&categoryId=${id}`)
}
export const getClassDetail = (id: string, subCategoryId: string, showIndex: string) => {
  return request.get<any, any>(`/item/list.json?__timestamp=1630133942864&categoryType=${{ showIndex }}&subCategoryId=${subCategoryId}&categoryId=${id}`)
}

